Research Article | Open Access
Volume 2023 |Article ID 0085 | https://doi.org/10.34133/plantphenomics.0085

Instance Segmentation and Berry Counting of Table Grape before Thinning Based on AS-SwinT

Wensheng Du,1,2 and Ping Liu 1

1Shandong Agricultural Equipment Intelligent Engineering Laboratory; Shandong Provincial Key Laboratory of Horticultural, Machinery and Equipment; College of Mechanical and Electronic Engineering, Shandong Agricultural University, Tai’an 271000, China
2School of Construction Machinery, Shandong Jiaotong University, Jinan 250357, China

Received 
16 Jan 2023
Accepted 
08 Aug 2023
Published
29 Aug 2023

Abstract

Berry thinning is one of the most important tasks in the management of high-quality table grapes. Farmers often thin the berries per cluster to a standard number by counting. With an aging population, it is hard to find adequate skilled farmers to work during thinning season. It is urgent to design an intelligent berry-thinning machine to avoid exhaustive repetitive labor. A machine vision system that can determine the number of berries removed and locate the berries removed is a challenge for the thinning machine. A method for instance segmentation of berries and berry counting in a single bunch is proposed based on AS-SwinT. In AS-SwinT, Swin Transformer is performed as the backbone to extract the rich characteristics of grape berries. An adaptive feature fusion is introduced to the neck network to sufficiently preserve the underlying features and enhance the detection of small berries. The size of berries in the dataset is statistically analyzed to optimize the anchor scale, and Soft-NMS is used to filter the candidate frames to reduce the missed detection of densely shaded berries. Finally, the proposed method could achieve 65.7 APbox, 95.0 0.5box, 57 box, 62.8 APmask, 94.3 0.5mask, 48 mask, which is markedly superior to Mask R-CNN, Mask Scoring R-CNN, and Cascade Mask R-CNN. Linear regressions between predicted numbers and actual numbers are also developed to verify the precision of the proposed model. RMSE and R2 values are 7.13 and 0.95, respectively, which are substantially higher than other models, showing the advantage of the AS-SwinT model in berry counting estimation.

© 2019-2023   Plant Phenomics. All rights Reserved.  ISSN 2643-6515.

Back to top